package org.springblade.modules.repair.service.impl;

import org.springblade.core.mp.base.BaseServiceImpl;
import org.springblade.core.tool.node.ForestNodeMerger;
import org.springblade.modules.repair.vo.BuildingElevatorTemplateReleTreeVO;
import org.springframework.stereotype.Service;
import java.util.List;
import org.springblade.modules.repair.entity.BuildingElevatorTemplateRele;
import org.springblade.modules.repair.mapper.BuildingElevatorTemplateReleMapper;
import org.springblade.modules.repair.service.BuildingElevatorTemplateReleService;

@Service
public class BuildingElevatorTemplateReleServiceImpl extends BaseServiceImpl<BuildingElevatorTemplateReleMapper, BuildingElevatorTemplateRele> implements BuildingElevatorTemplateReleService {

	@Override
	public List<BuildingElevatorTemplateRele> lazyList(Long buildingId, Long parentId) {
		return baseMapper.lazyList(buildingId, parentId);
	}

	@Override
	public List<BuildingElevatorTemplateReleTreeVO> tree(Long buildingId) {
		return ForestNodeMerger.merge(baseMapper.tree(buildingId));
	}
}

